package top.frsf.bullets;

import top.frsf.GameObject;

import java.awt.*;

/**
 * @BelongsProject: MiniPZ
 * @BelongsPackage: top.frsf.bullets
 * @Author: FRSF
 * @CreateTime: 2022-09-10  16:11
 * @Description: 子弹父类
 * @Version: 1.0
 */
public abstract class BulletObject extends GameObject {
    // 子弹爆炸图像
    Image[] boom = null;
    // 子弹伤害
    int heartHp;

    public BulletObject(String img, int x, int y, int width, int height, int heartHp) {
        super(img, x, y, width, height);
        this.heartHp = heartHp;
    }

    // 子弹移动
    public abstract void move();

    // 子弹销毁
    public abstract void destroy();
}
